<?php if(empty($isajax)):?><div class="messageform">
	<form name="memberMessage" class="messageForm" method="post" action="<?=site_url('member/message/'.$member->mid)?>" >
	<textarea name="content" required="required" placeholder="回复"></textarea>
	<input type="submit" class="subbtn" value="发送消息" />
	</form>
</div>
<dl class="messagelist"><?php endif;?>
	<?php foreach ($msglist as $key => $msg):?>
		<?php if($msg['mid']!=$member->mid):?>
	<dt class="left">
		<div class="userinfo">
			<a href="<?=$msg['spaceurl']?>" class="left avatar"><img src="<?=$msg['avatar']?>" alt="<?=$msg['mnick']?>" /></a>
			<h4><?=$msg['mnick']?></h4>
			<p></p>
		</div>
		<a href="<?=site_url('member/message/dialogue/1')?>" class="detail ani">来往记录</a>
	</dt>
	<dd class="right content">
		<div class="content">
			<?=$msg['content']?>
		</div>
		<div class="info"><span class="date"><?=$msg['puttime']?></span></div>
	</dd>
	<dd class="clear"></dd>
		<?php else:?>
	<dt class="right">
		<div class="userinfo">
			<a href="<?=$msg['spaceurl']?>" class="left avatar"><img src="<?=$msg['avatar']?>" alt="<?php echo $member->mname?>" /></a>
			<h4>我</h4>
			<p></p>
		</div>
		<a href="#" class="detail ani"></a>
	</dt>
	<dd class="left content">
		<div class="content">
			<?=$msg['content']?>
		</div>
		<div class="info"><span class="date"><?=$msg['puttime']?></span></div>
	</dd>
	<dd class="clear"></dd>
		<?php endif;?>
	<?php endforeach;?>
<?php if(empty($isajax)):?></dl>
<div class="pagination">
<a href="javascript:" onclick="loadmore(this,'.messagelist')">加载更多&gt;&gt;</a>
</div><?php endif;?>